package com.imooc.deliveryman.dao;

import com.imooc.deliveryman.enummeration.DeliverymanStatus;
import com.imooc.deliveryman.po.DeliverymanPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ProjectName deliveryman
 *
 * @author xieyucan
 * <br>CreateDate 2022/9/20 17:26
 */
@Mapper
@Repository
public interface DeliverymanDao {

    @Select("select id,name,status,date from deliveryman where status=#{status}")
    List<DeliverymanPo> selectDeliverymanByStatus(DeliverymanStatus status);
}
